<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <div v-bind:style="{ color: activeColor, fontSize: fontSize + 'px' }">对象语法</div>
    <div v-bind:style="styleObject">对象语法</div>
    <div v-bind:style="[baseStyles, styleObject]">数组语法</div>

</div>
<script src="../JavaScript/vue.js"></script>
<script>
    const vm = new Vue({
        el: "#app",
        data: {
            activeColor: 'red',
            fontSize: 30,
            styleObject: {
                color: 'red',
                fontSize: '13px'
            },
            baseStyles:{
                fontWeight:900
            }
        },
    })
</script>
</body>
</html>
